package com.htl.exampro.base.model;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(name = "PageParams", description = "PageParams")
public class PageParams {

    //当前页码
    @Schema(description = "当前页码")
    private Long pageNumber = 1L;

    //每页记录数默认值
    @Schema(description = "每页记录数默认值")
    private Long pageSize = 10L;

    public PageParams() {
    }

    public PageParams(long pageNumber, long pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
    }

    public Long getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Long pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }
}
